package com.springcloud.consumer02.blockhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.alibaba.fastjson.JSONObject;

public class UserBlockHandler {


    public static JSONObject addUserHandler(String username, String password, BlockException blockException) {
        JSONObject obj = new JSONObject();
        obj.put("code", 500);
        obj.put("msg", "sentinel降级");
        return obj;
    }
}
